//
//  SEDatePickerView.h
//  SEDatePicker
//
//  Created by 黄思清 on 2017/3/9.
//  Copyright © 2017年 com.phpwsd. All rights reserved.
//
//调用方法
//            DatePickerView *datepicker = [[DatePickerView alloc]initWithCompleteBlock:^(NSDate *selectDate) {
//                NSLog(@"\n 选择时间： %@",selectDate);
//            }];
//            datepicker.themeColor = [UIColor blueColor];
//            datepicker.datePickerStyle = DateStyleShowYearMonthDay;
//            datepicker.dateType = DateTypeStartDate;
//            datepicker.minLimitDate = [NSDate date:@"2011-2-28 12:22" WithFormat:@"yyyy-MM-dd HH:mm"];
//            datepicker.maxLimitDate = [NSDate date:@"2035-2-28 12:12" WithFormat:@"yyyy-MM-dd HH:mm"];
//            [datepicker show];


#import <UIKit/UIKit.h>

typedef enum{
    DateStyleShowYearMonthDayHourMinute  = 0,
    DateStyleShowMonthDayHourMinute,
    DateStyleShowYearMonthDay,
    DateStyleShowYearMonth,
    DateStyleShowMonthDay,
    DateStyleShowHourMinute
    
}DateStyle;

typedef enum{
    DateTypeStartDate
    
}DateType;

@interface DatePickerView : UIView

@property (nonatomic,assign)DateStyle datePickerStyle;
@property (nonatomic,assign)DateType dateType;
@property (nonatomic,strong)UIColor *themeColor;
@property (nonatomic,strong)NSString *title;

@property (nonatomic, retain) NSDate *maxLimitDate;//限制最大时间（没有设置默认2049）
@property (nonatomic, retain) NSDate *minLimitDate;//限制最小时间（没有设置默认1970）

-(instancetype)initWithCompleteBlock:(void(^)(NSDate *))completeBlock;

-(void)show;


@end
